package com.book.service.serviceImpl;

import com.baomidou.mybatisplus.mapper.Condition;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.book.entity.Address;
import com.book.mapper.AddressMapper;
import com.book.service.AddressService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper,Address> implements AddressService {
    @Override
    public List<Address> getAddressByUsername(String username) {
        Wrapper<Address> con=new Condition();
        con.eq("username",username);
        return selectList(con);
    }
}
